package com.tian.recycler.itemtouch

import androidx.recyclerview.widget.RecyclerView

/**
 * @author tiansongtao, Email:tiansongtao@up366.com
 * @date 2021/3/22 10:37
 */
interface ItemTouchAdapterCallback {

    /**
     * 数据交换
     */
    fun onItemMove(fromPosition: Int, toPosition: Int)

    /**
     * 数据删除
     */
    fun onItemDelete(viewHolder: RecyclerView.ViewHolder)
}